#ifndef ASSERT_H
#define ASSERT_H

#include <yandex/maps/common/exception.h>
#include <string>

#undef assert

inline void assert(bool a)
{
    if (!a) {
        THROW_EX(maps::Exception, "no message");
    }
}

inline void assert(bool a, const char* message)
{
    if (!a) {
        THROW_EX(maps::Exception, message);
    }
}

inline void assert(bool a, const std::string& message)
{
    if (!a) {
        THROW_EX(maps::Exception, message);
    }
}

#endif//ASSERT_H
